/*
 * @Author: yangni 920556271@qq.com
 * @Date: 2024-01-04 16:51:13
 * @LastEditors: yangni 920556271@qq.com
 * @LastEditTime: 2024-03-26 09:53:26
 * @FilePath: /yt-devops/lib/model/device_obj/tab_config_model.dart
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import 'package:json_annotation/json_annotation.dart';
import 'package:yt_devops/model/device_obj/authority_config_model.dart';
import 'package:yt_devops/model/device_obj/product_config_model.dart';

part 'tab_item_config_model.g.dart';

@JsonSerializable()
class TabItemConfigModel<T> extends ProductConfigModel<T> {
  List<AuthorityModelConfig>? authority;
  TabItemConfigModel(
      {String? name, required super.id, super.parentId, this.authority})
      : super(
          name: name ?? '',
          type: DeviceConfigType.tabItem,
        );

  factory TabItemConfigModel.fromJson(Map<String, dynamic> json) =>
      _$TabItemConfigModelFromJson(json);

  Map<String, dynamic> toJson() => _$TabItemConfigModelToJson(this);
}
